package com.wjgl.domain;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private Integer id;
	private Role role;
	private Department department;
	private Institution institution;
	private String name;
	private String password;
	private String email;
	private Short isadmin;
	private Timestamp registerdate;
	private Timestamp logindate;
	private Short state;
	private Set files = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String name, String password, String email, Short isadmin,
			Timestamp registerdate, Timestamp logindate, Short state) {
		this.name = name;
		this.password = password;
		this.email = email;
		this.isadmin = isadmin;
		this.registerdate = registerdate;
		this.logindate = logindate;
		this.state = state;
	}

	/** full constructor */
	public User(Role role, Department department, Institution institution,
			String name, String password, String email, Short isadmin,
			Timestamp registerdate, Timestamp logindate, Short state, Set files) {
		this.role = role;
		this.department = department;
		this.institution = institution;
		this.name = name;
		this.password = password;
		this.email = email;
		this.isadmin = isadmin;
		this.registerdate = registerdate;
		this.logindate = logindate;
		this.state = state;
		this.files = files;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Role getRole() {
		return this.role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Department getDepartment() {
		return this.department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Institution getInstitution() {
		return this.institution;
	}

	public void setInstitution(Institution institution) {
		this.institution = institution;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Short getIsadmin() {
		return this.isadmin;
	}

	public void setIsadmin(Short isadmin) {
		this.isadmin = isadmin;
	}

	public Timestamp getRegisterdate() {
		return this.registerdate;
	}

	public void setRegisterdate(Timestamp registerdate) {
		this.registerdate = registerdate;
	}

	public Timestamp getLogindate() {
		return this.logindate;
	}

	public void setLogindate(Timestamp logindate) {
		this.logindate = logindate;
	}

	public Short getState() {
		return this.state;
	}

	public void setState(Short state) {
		this.state = state;
	}

	public Set getFiles() {
		return this.files;
	}

	public void setFiles(Set files) {
		this.files = files;
	}

}